<?

/*
 * Copyright (c) 2010 DC Team
 */

@header("Content-Type: text/html;charset=UTF-8");
if ($_GET['k'] == 'dragoncall') {
	if ($_GET['file'] != 'last' && $_GET['file'] != 'bak') {
		exit('failed!');
	}
	chmod('include/data.'.$_GET['file'].'.php', 0777);	
	chmod('include/data.conf.php', 0777);
	copy('include/data.'.$_GET['file'].'.php', 'include/data.conf.php');
	echo "<script>alert('还原成功!');window.location.href='index.php';</script>";
}

?>